package com.example.boke.controller;

import com.example.boke.model.BlogInfo;
import com.example.boke.service.BlogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Slf4j
@RequestMapping("/blog")
@RestController
public class BlogController {
@Autowired
    private BlogService blogService;
public List<BlogInfo> getList(){
    log.info("打印全部列表");
return blogService.getList();
}
}
